export default () => {

    $('#swal-demo1').on('click', function(e) {
        e.preventDefault();
        swal("Here's a message!")
    });


    $('#swal-demo2').on('click', function(e) {
        e.preventDefault();
        swal("Here's a message!", "It's pretty, isn't it?")
    });

    $('#swal-demo3').on('click', function(e) {
        e.preventDefault();
        swal("Good job!", "You clicked the button!", "success")
    });

    $('#swal-demo4').on('click', function(e) {
        e.preventDefault();
        swal({
                title: "Are you sure?",
                text: "You will not be able to recover this imaginary file!",
                type: "warning",
                showCancelButton: true,
                confirmButtonColor: "#DD6B55",
                confirmButtonText: "Yes, delete it!",
                closeOnConfirm: false
            },
            function() {
                swal("Deleted!", "Your imaginary file has been deleted.", "success");
            });

    });

    $('#swal-demo5').on('click', function(e) {
        e.preventDefault();
        swal({
            title: "Are you sure?",
            text: "You will not be able to recover this imaginary file!",
            type: "warning",
            showCancelButton: true,
            confirmButtonColor: "#DD6B55",
            confirmButtonText: "Yes, delete it!",
            cancelButtonText: "No, cancel plx!",
            closeOnConfirm: false,
            closeOnCancel: false
        }, function(isConfirm) {
            if (isConfirm) {
                swal("Deleted!", "Your imaginary file has been deleted.", "success");
            } else {
                swal("Cancelled", "Your imaginary file is safe :)", "error");
            }
        });

    });

}